from typing import Union, Optional

from app.schemas.common import DateTimeModelMixin


class CreateMusic(DateTimeModelMixin):
    id: Union[int, None]
    price: Union[int, None]
    avatar: str
    title: str
    like: int
    watch: int
    content: str

    class Config:
        orm_mode = True


class List(DateTimeModelMixin):
    id: Union[int, None]
    pid: int
    title: str
    file_url: str

    class Config:
        orm_mode = True
